import {Table, Column, Model, DataType} from 'sequelize-typescript'
import BaseTable from '../until/base_table'

@Table({
    tableName: "Mssage"
})
export default class Mssage extends BaseTable {

    // 模块编号
    @Column({
        allowNull: false,
        type: DataType.INTEGER
    })
    module_id!: number;

    // 报警内容
    @Column({
        allowNull: false,
        type: DataType.TEXT
    })
    info!: string;

    @Column
    date!: string;

    // 解决状态
    @Column({
        defaultValue: 0
    })
    state!: number;
    // 报警等级
    @Column
    level!: number;

    //类型
    @Column
    type_id!: number;

    @Column
    error_value!: number;
}
